package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Richard
 * Date: 04/02/13
 * Time: 00:54
 * To change this template use File | Settings | File Templates.
 */
public class User {
    public String username;
    public String password;
    public String name;
    public String email;
    public String phone;

    public User(String _username, String _password, String _name, String _email, String _phone) {
        username = _username;
        password = _password;
        name = _name;
        email = _email;
        phone = _phone;
    }
    public User(String _username, String _password) {
        username = _username;
        password = _password;
    }
    public User() { }

    public boolean checkPassword(String _password) {
        if (password.equals(_password)) {
            return true;
        }
        else {
            return false;
        }
    }
}
